package com.action.tree;

import java.util.LinkedList;

public class Node
{
	private int nodeType;
	
	private int nodeId;
	
	private int parentId;
	
	private String nodeName;
	
	private String smallImage;
	
	private String bigImage;
	
	private String nodeLink;
	
	private String nodeDesc;
	
	private LinkedList childNode;
	
	private boolean rootNode;
	
	public Node()
	{
		rootNode = false;
	}
	
	public void setRoot()
	{
		rootNode = true;
	}
	
	public boolean isRoot()
	{
		return rootNode;
	}
	
	public boolean isLeaf()
	{
		if( childNode == null )
		{
			return true;
		}else
		{
			return false;
		}
	}
	
	public String getBigImage()
	{
		return bigImage;
	}

	public void setBigImage( String bigImage )
	{
		this.bigImage = bigImage;
	}

	public LinkedList getChildNodes()
	{
		return childNode;
	}

	public void addChildNode( Node node )
	{
		if( childNode == null )
		{
			childNode = new LinkedList();
		}
		childNode.add( node );
	}

	public void setNodeType( int nodeType )
	{
		this.nodeType = nodeType;
	}

	public String getNodeDesc()
	{
		return nodeDesc;
	}

	public void setNodeDesc( String nodeDesc )
	{
		this.nodeDesc = nodeDesc;
	}

	public int getNodeId()
	{
		return nodeId;
	}

	public void setNodeId( int nodeId )
	{
		this.nodeId = nodeId;
	}

	public String getNodeLink()
	{
		return nodeLink;
	}

	public void setNodeLink( String nodeLink )
	{
		this.nodeLink = nodeLink;
	}

	public String getNodeName()
	{
		return nodeName;
	}

	public void setNodeName( String nodeName )
	{
		this.nodeName = nodeName;
	}

	public int getNodeType()
	{
		return nodeType;
	}

	public int getParentId()
	{
		return parentId;
	}

	public void setParentId( int parentId )
	{
		this.parentId = parentId;
	}

	public String getSmallImage()
	{
		return smallImage;
	}

	public void setSmallImage( String smallImage )
	{
		this.smallImage = smallImage;
	}
}
